﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using System.Data.SqlClient;

namespace FYPHP
{
    public partial class VirtualPreview : System.Web.UI.Page
    {
        SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["fyphp"].ConnectionString);
        
        protected void Page_Load(object sender, EventArgs e)
        {
            string layout = Request.QueryString["l"];
            
            var control = Page.LoadControl("~/prelayout" + layout + ".ascx");
            PlaceHolder1.Controls.Add(control);

            conn.Close();
        }
    }
}